package chapter08.chapter8_5_ReplaceArrayWithObject.ver01;

public class ArrayDemo {

    public static String[] init(String name, String age) {
        String[] row = new String[3];
        row[0] = name;
        row[1] = age;
        return row;
    }

    public String getName (String[] array) {
        return array[0];
    }

    public Integer getAge(String[] array) {
        return Integer.valueOf(array[1]);
    }

}
